import { useRoutes } from 'react-router-dom';
import routerData from 'src/router/routerData';
import MainLayout from 'src/component/layout/MainLayout';
import { addLayout } from './util';

export default function RouterPage() {
  // addLayout 方法增加MainLayout父组件
  return <>{useRoutes(addLayout(routerData(), MainLayout))}</>;
}
